package com.hyc.cloud.service;

import org.springframework.cloud.openfeign.FeignClient;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT",fallback = PaymentServiceFallback.class)
public interface PaymentService {
    @GetMapping(value = "/payment/hystrix/ok/{id}")
    public String paymentinfo_ok (@PathVariable("id") Integer id);
    @GetMapping(value = "/payment/hystrix/timeout/{id}")
    public String paymentinfo_timeout (@PathVariable("id") Integer id);
}
